/*
 * Copyright 2022-2023 the original author(https://github.com/wj596)
 * 
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * </p>
 */
package org.jsets.fastboot.flowable.model.dto;

import java.util.List;
import org.jsets.fastboot.persistent.IPageRequest;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 流程任务查询对象
 * @author wangjie (https://github.com/wj596)
 * @date 2021.05.07 21:49
 */
@Data
@ToString
@Accessors(chain = true)
public class FlowTaskQuery implements IPageRequest {

	private static final long serialVersionUID = 1L;
	private Integer current;
	private Integer size;
	
	private String definitionKey;//任务定义KEY
	private String username; // 用户名(assignee or candidate)
	private boolean cascadeGroup = false;// 级联查询user关联的组
	private List<String> groupIds; // 候选组

	private String processDefinitionId;// 流程名称
	private String processDefinitionKey;// 流程KEY
	private String processDefinitionName;// 流程名称
	private String processInstanceId;// 流程实例ID
	private String processInstanceBusinessKey;//业务KEY
	private String processInstanceStartUser;// 流程实例发起人
	private String processInstanceCreateTimeStart;// 流程实例创建时段-开始
	private String processInstanceCreateTimeEnd;// 流程实例创建时段-结束
	
	private String handlerSQLStatement;//办理人查询条件SQL片段
}